package com.minyue.sqlsession;

import com.minyue.pojo.Configuration;

/**
 * @author ：minyue
 * @date ：Created in 2021/7/22 11:47 下午
 * @description：
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
